<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <body>
    <script type="text/javascript">
   		function fy(i){
   			var uri = "/myday11/UserServlet?method=fy&currPageNO="+i;
   			window.location.href = uri;
   		}
    </script>
  	<table border="1" align="center">
  		<caption>用户信息</caption>
  		<tr>
  			<th>
  				编号
  			</th>
  			<th>
  				用户名
  			</th>
  			<th>
  				密码
  			</th>
  			<th>
  				生日
  			</th>
  			 <th>
  				薪水	
  			</th>
  		</tr>
  		<c:forEach var="user" items="${page.userList}">
  			<tr>
  				<td>${user.id}</td>
  				<td>${user.username}</td>
  				<td>${user.password}</td>
  				<td>${user.birthday}</td>
  				<td>${user.salary}</td>
  			</tr>
  		</c:forEach>
  		<tr>
  			<td colspan="5" align="center">
				<c:forEach var="i" begin="1" end="${page.allPageNO}" step="1">
					<a 
						href="/day13/UserServlet?method=fy&currPageNO=${i}" 
						style="text-decoration:none">
						[${i}]&nbsp;&nbsp;&nbsp;
					</a>
				</c:forEach>
  			</td>
  		</tr>
  		<tr>
  			<td colspan="5" align="center">
  				<select onchange="fy(this.value)">
					<c:forEach var="i" begin="1" end="${page.allPageNO}">
  						<option value="${i}" ${page.currPageNO==i?'selected':''}>${i}</option>
					</c:forEach>
  				</select>
  			</td>
  		</tr>
  		<tr>
  			<td colspan="5" align="center">
  				当前第${page.currPageNO}页
  				/共${page.allPageNO}页
  				/每页显示${page.perPageNO}条记录
  			</td>
  		</tr>
  	</table>
  </body>
</html>
